// 引入 request
import request from '@/utils/request'

// 获取区域列表
export const getRegionList = data => request.get('/api/vm-service/region/search', { params: data })

// 新增区域
export const addRegion = data => request.post('/api/vm-service/region', data)

// 删除区域
export const delRegion = id => request.delete(`/api/vm-service/region/${id}`)

// 修改区域
export const modifyRegion = form => request.put(`/api/vm-service/region/${form.id}`, form)

// 区域详情(点位搜索)
export const detailRegion = params => request.get('/api/vm-service/node/search', { params })
